# reverse.py
def reverse_string(input_str):  #反转字符串
    return ''.join(input_str[i] for i in range(len(input_str)-1, -1, -1))
